/**
 * Created with JetBrains WebStorm.
 * User: P0018766
 * Date: 13-1-23
 * Time: 下午4:54
 * To change this template use File | Settings | File Templates.
 */
var mongoose = require('mongoose'),
    Schema = mongoose.Schema;
 
var CommentSchema = new Schema({
    content:{ type:String },
    from_user:{ type:Schema.ObjectId },
    to_shop:{ type:Schema.ObjectId  },
    rating:{ type:Number },
    creatAt:{ type:Date, default:Date.now },
});

mongoose.model('Comment', CommentSchema);
